package com.dqhl.community.util;

import android.os.Environment;

import java.io.File;

/**
 * Created by cheng on 2016/8/31.
 * 常量类
 */
public class Constant {

    public final static String SOCIAL_KEY = "lubBdCWJoYeHWG0TPJUyWcc332XfvzDj";
    //目标用户clientId
    public final static String TARGET_CLIENTID = "AIMHLKRD5V0H66PQ3R7LLAL";
    //箭扣科技注册
    public final static String REGISTER_ANIM = "users/create.json";
    //箭扣userid
    public final static String IM_CLIENTID = "im_clientid";
    //箭扣username(即长治登陆手机号)
    public final static String IM_USERNAME = "im_username";

    // 登录后保存用户信息的 SharedPreferences文件名
    public final static String USER_LOGIN = "user_login";
    // 用户信息的 SharedPreferences
    public final static String USER_INFO = "user_info";
    // 用户信息的 SharedPreferences里用户的key
    public final static String USER = "user";
    // spUserInfo里图片路径的key
    public final static String PHOTO_PATH = "photo_path";
    // 姓名
    public final static String NAME = "name";
    // 微信登录绑定状态，2为已绑定，1为未绑定
    public final static String WXSTATE = "wxstate";
    // QQ登录绑定状态，2为已绑定，1为未绑定
    public final static String QQSTATE = "qqstate";
    // 更换头像的广播
    public final static String ACTION_PHOTO_MODIFY = "com.dqhl.community.action_photo_modify";
    // 修改手机号发送验证码倒计时
    public final static long TIMECOUNT_MODIFY_PHONE = 60000;
    // 注册发送验证码倒计时
    public final static long TIMECOUNT_REGISTER = 60000;
    // 登录成功的广播
    public final static String ACTION_LOGIN_SUCCESS = "action_login_success";
    // 退出登录的广播
    public final static String ACTION_LOGOUT = "action_logout";
    // 认证成功的广播
    public final static String ACTION_COMPLAIN = "action_complain";
    // 用户认证的小区名
    public final static String COMMUNITY_NAME = "community_name";
    // 用户手机号
    public final static String USER_PHONE = "user_phone";
    // 箭扣科技用户名
    public final static String ANIM_PHONE = "anim_name";
    // 用户密码
    public final static String ANIM_PWD = "anim_pwd";
    // 用户id
    public final static String USERID = "userid";
    // 用户昵称
    public final static String NICKNAME = "nickname";
    // 用户是否认证
    public final static String AUTHENTICATION = "authentication";
    // 用户性别
    public final static String SEX = "sex";
    // 用户所在小区楼宇单元房号
    public final static String ADDRESS = "address";
    // 用户所在小区
    public final static String COMMUNITY_ID = "community_id";
    //未使用优惠券
    public final static String COUPONS_UNUSED = "coupons_unused";
    //已使用优惠券
    public final static String COUPONS_USED = "coupons_used";
    //已过期优惠券
    public final static String COUPONS_OVERDUE = "coupons_overdue";
    //积分
    public final static String COUPONS_COUPON = "coupons_coupon";
    // 图片的保存地址
    public static final String photoPath = Environment.getExternalStorageDirectory().getPath() + File.separator + "dqhlImage/";
    //  修改昵称的广播
    public final static String ACTION_UPDATA_SUCCESS = "update_success";
    //  修改性别的广播
    public final static String ACTION_UPDATE_SEX = "action_update_sex";
    // 微信平台的APP_ID
    public static final String WEIXIN_APP_ID = "wx5c6d3169005220d3";
    // 微信平台的APP_SCCRET
    public static final String WEIXIN_APP_SCCRET = "949b3a5b269cb68394a9b7c88559dfa4";

    public static final String MESSAGE_RECEIVED_ACTION = "com.dqhl.community.MESSAGE_RECEIVED_ACTION";
    public static final String KEY_MESSAGE = "message";
    public static final String KEY_EXTRAS = "extras";

    // 评价成功的广播
    public final static String ACTION_EVALUATE_SUCCESS = "com.dqhl.community.evaluate_success";
    // 修改手机号成功的广播
    public final static String ACTION_MODIFY_PHONE_SUCCESS = "com.dqhl.community.modify_phone_success";
}
